const qiniu = require('qiniu');
const ak = 'iomuVjqxpcxcRAtARkzGSlIltNo0LE72JxtfOJSk';
const sk = 'OJbbt-N9Td4vwbEdmVTjkjBK-ZZSJKQysNc_zVCw';
let mac = new qiniu.auth.digest.Mac(ak, sk);
let options = {
    scope:'cozia',
    expires: 3600*2
};
let putPolicy = new qiniu.rs.PutPolicy(options);
let uploadToken = () =>{
    return putPolicy.uploadToken(mac)
};
module.exports = uploadToken;